package com.blb.ssh.action;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport {

	private static final long serialVersionUID = 7829286503432765727L;
	
	protected static final String JSP_PATH = "/WEB-INF/jsp/";
	
	protected static final String PAGE_LIST = "list";
	protected static final String PAGE_ADD = "add";
	protected static final String PAGE_UPDATE = "list";
	protected static final String PAGE_LOGIN = "login";
	protected static final String JSON = "json";
	protected static final String ROOT = "root";
	
	protected static final String successMsg = "successResult";	//action中使用
	protected static final String errorMsg = "errorResult";		//action中使用
	
	protected static String successResult = "ok";
	protected static String errorResult = "操作失败";
	
	public String getSuccessResult() {
		return successResult;
	}
	
	public String getErrorResult() {
		return errorResult;
	}
	
	public void setErrorResult(String msg){
		errorResult = msg;
	}

}
